#include <stdio.h>
;void kk(int m,int *arr,int arrsize,int (*pai)(int))
{
    int i;
    for(i = 0;i < arrsize;i++)
    {
        arr[i] = pai(m);
        m = arr[i];
    }
}
int getvalue(int n)
{
    int s;
    s = n * 2;
    return s;
}
int main()
{
    int a = 1;
    int mar[10] = {0};
    kk(a,mar,10,&getvalue);
    int j;
    for(j = 0;j < 10;j++)
    {
        printf("mar[%d]=%d\n",j,mar[j]);
        };
    return 0;
}
